@echo off
SETLOCAL

REM core script directories
set BASE_DIR=%~dp0
set SCRATCH_DIR=scratch
set TOOLS_DIR=tools

set SAXON_JAR=%TOOLS_DIR%\saxon\saxon-he-9.3.0.5.jar
set CLASS_PATH=".;%SAXON_JAR%;%CLASS_PATH%"
set INPUT=%SCRATCH_DIR%\biogridBGExport.xml
set OUTPUT=%SCRATCH_DIR%\biogridBGExport_oaiRIFCS.xml
set XSLT=bg2rifcs.xsl

pushd %BASE_DIR%

java -cp %CLASS_PATH% net.sf.saxon.Transform -s:%INPUT% -xsl:%XSLT% -o:%OUTPUT%

popd
ENDLOCAL